package com.ly.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ly.entity.Team;
import com.ly.pojo.vo.TeamVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author : 黑渊白花
 * @ClassName TeamMapper
 * @date : 2025/2/8 22:09
 * @Description
 */
@Mapper
public interface TeamMapper extends BaseMapper<Team> {
    IPage<TeamVO> getAllPage(
            @Param("page") IPage<TeamVO> page,
            String name, Integer typeId);

    IPage<TeamVO> getAuditPage(
            @Param("page") IPage<TeamVO> page,
            String name, Integer typeId);

    TeamVO getByManager(String name);

    TeamVO getTeamById(Integer id);
    List<TeamVO> searchTByType(String typeName);

    List<TeamVO> getTeamsByStuId(Integer stuId);
}
